const User = require('../models/user');
const Router = require('../Router')

//公用中间键
exports.publicMiddleware = [];

exports.login = new Router({
    describe: '登录',
    myMiddleware: [],
    method: 'get',
    args: {
        username: {
            type: String,
            require: true
        },
        password: {
            type: Number,
            require: true
        }
    },
    run(req, res, next) {
        return res.send('登录成功')
    }
})

exports.regist = new Router({
    describe: '注册',
    myMiddleware: [],
    method: 'get',
    args: {
        username: {
            type: String,
            require: true
        },
        password: {
            type: Number,
            require: true
        }
    },
    run(req, res, next) {
        return res.send('注册成功')
    }
})